<html>
<%@ include file="../header.jsp" %>
<%@ page import="admin.system.rolefunc.*" %>
<body>
<script language=javascript>
 function formValidation()
 {
    for (var i=0; i< fm.description.length; i++)
    {
        var d2 = fm.description[i];
        if (isNull(d2,"Description"))
        {
           return false;
        }
    }
        return true;
 }
 function assignDescription()
 {
    for (var i=0; i< fm.description.length; i++)
    {
        fm.description[i].value=fm.AllDescription.value;
    }
 }
</script>
<%   RoleFuncBean[] roleFuncs = (RoleFuncBean[])request.getAttribute("roleFuncs");
     if (roleFuncs==null)
        roleFuncs = new RoleFunc[0];  %>
<body >
<h2>Role Function Maintenance</h2>
<form id=fm method=post action=<%=contextPath%>/servlet/admin.system.rolefunc.RoleFuncMultiUpdateServlet >
<INPUT type=button value=Back onclick=javascript:history.back()>
<table cols=3 border=1 >
<tr>
    <td><b>Role ID</b></td>
    <td><input type=text name=role_id value="<%=roleFuncs[0].getRole_id()%>" readOnly></td>
</tr>
</table>
<hr>
<table cols=2 border=1 >
<thead>
  <td><b>Function ID</b></td>
  <td><b>Remark</b></td>
</thead>
<%  for (int i=0; i<roleFuncs.length; i++)
    {   %>
<tr>
    <td><input type=text name=func_id value="<%=roleFuncs[i].getFunc_id()%>" readOnly></td>
    <td><input type=text name=remark value="<%=roleFuncs[i].getRemark()%>" readOnly></td>
</tr>
<%  } %>
</table>
<hr>
<p>
  <INPUT type=button value=Save onclick="save()" >
</p>
</form>
</body>
<%@ include file="../footer.jsp" %>
</body>
</html>

